# Default log4j configuration. See the individual classes for the
# specific loggers, but generally they are named for the class in
# which they are defined.

# Default log4j configuration for testing purposes.
#
# You probably want to set the default log level to ERROR.
#
#log4j.rootCategory=WARN, dest1
#log4j.rootCategory=WARN, dest2
log4j.rootCategory=WARN, file

# Loggers.
# Note: logging here at INFO or DEBUG will significantly impact throughput!
log4j.logger.com.bigdata=WARN
log4j.logger.com.bigdata.btree=WARN
log4j.logger.com.bigdata.counters.History=ERROR
log4j.logger.com.bigdata.counters.XMLUtility$MyHandler=ERROR
log4j.logger.com.bigdata.counters.query.CounterSetQuery=INFO
log4j.logger.com.bigdata.journal.CompactTask=INFO
log4j.logger.com.bigdata.relation.accesspath.BlockingBuffer=ERROR
log4j.logger.com.bigdata.rdf.load=INFO
log4j.logger.com.bigdata.resources.AsynchronousOverflowTask=INFO

# Normal data loader (single threaded).
# log4j.logger.com.bigdata.rdf.store.DataLoader=INFO


# file
log4j.appender.file=org.apache.log4j.RollingFileAppender
log4j.appender.file.File=<%= node['bigdata'][:log_dir] %>/bigdata.log
log4j.appender.file.MaxFileSize=4MB
log4j.appender.file.MaxBackupIndex=10
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d{MMM dd, yyyy HH:mm:ss} %-5p: %F:%L: %m%n

# dest1
log4j.appender.dest1=org.apache.log4j.ConsoleAppender
log4j.appender.dest1.layout=org.apache.log4j.PatternLayout
log4j.appender.dest1.layout.ConversionPattern=%d{MMM dd, yyyy HH:mm:ss} %-5p: %F:%L: %m%n
#log4j.appender.dest1.layout.ConversionPattern=%-5p: %r %l: %m%n
#log4j.appender.dest1.layout.ConversionPattern=%-5p: %m%n
#log4j.appender.dest1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
#log4j.appender.dest1.layout.ConversionPattern=%-4r(%d) [%t] %-5p %c(%l:%M) %x - %m%n

## dest2 includes the thread name and elapsed milliseconds.
## Note: %r is elapsed milliseconds.
## Note: %t is the thread name.
## See http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/PatternLayout.html
#log4j.appender.dest2=org.apache.log4j.ConsoleAppender
#log4j.appender.dest2.layout=org.apache.log4j.PatternLayout
#log4j.appender.dest2.layout.ConversionPattern=%-5p: %r %X{hostname} %X{serviceUUID} %X{taskname} %X{timestamp} %X{resources} %t %l: %m%n
#
### 
## Rule execution log. This is a formatted log file (comma delimited).
log4j.logger.com.bigdata.relation.rule.eval.RuleLog=INFO,ruleLog
log4j.additivity.com.bigdata.relation.rule.eval.RuleLog=false
log4j.appender.ruleLog=org.apache.log4j.FileAppender
log4j.appender.ruleLog.Threshold=ALL
log4j.appender.ruleLog.File=rules.log
log4j.appender.ruleLog.File=<%= node['bigdata'][:log_dir] %>/rules.log
log4j.appender.ruleLog.Append=true
## I find that it is nicer to have this unbuffered since you can see what
## is going on and to make sure that I have complete rule evaluation logs
## on shutdown.
log4j.appender.ruleLog.BufferedIO=false
log4j.appender.ruleLog.layout=org.apache.log4j.PatternLayout
log4j.appender.ruleLog.layout.ConversionPattern=%m
#
### 
## Summary query evaluation log (tab delimited file). Uncomment the next line to enable
##log4j.logger.com.bigdata.bop.engine.QueryLog=INFO,queryLog
#log4j.additivity.com.bigdata.bop.engine.QueryLog=false
#log4j.appender.queryLog=org.apache.log4j.FileAppender
#log4j.appender.queryLog.Threshold=ALL
#log4j.appender.queryLog.File=<%= node['bigdata'][:log_dir] %>/queryLog.csv
#log4j.appender.queryLog.Append=true
## I find that it is nicer to have this unbuffered since you can see what
## is going on and to make sure that I have complete rule evaluation logs
## on shutdown.
#log4j.appender.queryLog.BufferedIO=false
#log4j.appender.queryLog.layout=org.apache.log4j.PatternLayout
#log4j.appender.queryLog.layout.ConversionPattern=%m
#
### 
## BOp run state trace (tab delimited file).  Uncomment the next line to enable.
##log4j.logger.com.bigdata.bop.engine.RunState$TableLog=INFO,queryRunStateLog
#log4j.additivity.com.bigdata.bop.engine.RunState$TableLog=false
#log4j.appender.queryRunStateLog=org.apache.log4j.FileAppender
#log4j.appender.queryRunStateLog.Threshold=ALL
#log4j.appender.queryRunStateLog.File=<%= node['bigdata'][:log_dir] %>/queryRunState.log
#log4j.appender.queryRunStateLog.Append=true
## I find that it is nicer to have this unbuffered since you can see what
## is going on and to make sure that I have complete rule evaluation logs
## on shutdown.
#log4j.appender.queryRunStateLog.BufferedIO=false
#log4j.appender.queryRunStateLog.layout=org.apache.log4j.PatternLayout
#log4j.appender.queryRunStateLog.layout.ConversionPattern=%m
